#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import introduction_blueprint
from api_1_0.introductionResource.introductionResource import IntroductionResource
from api_1_0.introductionResource.introductionOtherResource import IntroductionOtherResource

api = Api(introduction_blueprint)

api.add_resource(IntroductionResource, '/introduction/<auto_id>', '/introduction', endpoint='Introduction')


@introduction_blueprint.route('/introduction/update/<auto_id>', methods=['PUT'], endpoint='IntroductionUpdate')
def update(auto_id):
    return IntroductionOtherResource.sensitive_update(auto_id)
